Skip to content

Fix types in template package#3461

Merged
jeremymeng merged 4 commits into
Azure:masterfrom
jeremymeng:template-declaration-rollup
Jun 5, 2019
Merged

Fix types in template package#3461
jeremymeng merged 4 commits into
Azure:masterfrom
jeremymeng:template-declaration-rollup

Conversation

@jeremymeng

Copy link
Copy Markdown
Member

The path to the type declaration file is incorrect. This change introduces

  • rollup of d.ts files using api-extractor

  • point types to the rolled-up azure-template.d.ts file

  • also generate beta trimmed and public trimmed d.ts rollup files in case
    we want to publish them (which requires either updating the types field in
    package.json, or overwriting that file)

  • commit the api report (./review/template.api.md) which is often used to review
    api changes.

@jeremymeng jeremymeng self-assigned this Jun 5, 2019
@jeremymeng jeremymeng requested review from bterlson and sophiajt June 5, 2019 05:16
Comment thread sdk/template/template/api-extractor.json Outdated
@jeremymeng

Copy link
Copy Markdown
Member Author

I disabled generation of untrimmed files for other packages as well.

The path to the type declaration file is incorrect. This change introduces

- rollup of d.ts files using api-extractor

- point `types` to the rolled-up azure-template.d.ts file

- also generate beta trimmed and public trimmed d.ts rollup files in case
  we want to publish them (which requires either updating the `types` field in
  package.json, or overwriting that file)

- commit the api report (./review/template.api.md) which is often used to review
  api changes.
Pack the public trimmed rollup .d.ts instead.
@jeremymeng jeremymeng force-pushed the template-declaration-rollup branch from 59f3f52 to ca7ec49 Compare June 5, 2019 18:29

@sophiajt sophiajt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@jeremymeng jeremymeng merged commit 320ea9e into Azure:master Jun 5, 2019
@jeremymeng jeremymeng deleted the template-declaration-rollup branch June 5, 2019 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants